<%@ page language="java" pageEncoding="utf-8" %>
<%@page import="com.wallellen.core.time.TimeTool" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="tag" prefix="PF" %>
<%--
  ~ This file Copyright (c) 2015. Walle.
  ~ (http://www.wallellen.com). All rights reserved.
  ~
  ~
  ~ This file is dual-licensed under both the
  ~ Walle Agreement (WA) and the GNU General Public License.
  ~ You may elect to use one or the other of these licenses.
  ~
  ~ This file is distributed in the hope that it will be
  ~ useful, but AS-IS and WITHOUT ANY WARRANTY; without even the
  ~ implied warranty of MERCHANTABILITY or FITNESS FOR A
  ~ PARTICULAR PURPOSE, TITLE, or NONINFRINGEMENT.
  ~ Redistribution, except as permitted by whichever of the GPL
  ~ or WA you select, is prohibited.
  ~
  ~ 1. For the GPL license (GPL), you can redistribute and/or
  ~ modify this file under the terms of the GNU General
  ~ Public License, Version 3, as published by the Free Software
  ~ Foundation.  You should have received a copy of the GNU
  ~ General Public License, Version 3 along with this program;
  ~ if not, write to the Free Software Foundation, Inc., 51
  ~ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  ~
  ~ 2. For the Walle Agreement (WA), this file
  ~ and the accompanying materials are made available under the
  ~ terms of the WA which accompanies this distribution, and
  ~ is available at http://www.wallellen.com/agreement.html
  ~
  ~
  ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
  --%>

<%
    String year = TimeTool.getFormatTimeDate12(
            TimeTool.getTimeDate12(), "yyyy");
    int yearInt = Integer.valueOf(year);
    int cyear = yearInt - 10;
%>
<select id="yearid">
    <option value="*">每</option>
    <%
        while (cyear < yearInt + 10) {
    %>
    <option value="<%=cyear%>">
        <%=cyear%>
    </option>
    <%
            cyear++;
        }
    %>
</select>
年&nbsp;&nbsp;
<select id="monthid">
    <option value="*">每</option>
    <%
        int cmonth = 1;
        while (cmonth <= 12) {
    %>
    <option value="<%=cmonth%>">
        <%=cmonth%>
    </option>
    <%
            cmonth++;
        }
    %>
</select>
月&nbsp;&nbsp;
<select id="dayid">
    <option value="*">每</option>
    <%
        int cday = 1;
        while (cday <= 30) {
    %>
    <option value="<%=cday%>">
        <%=cday%>
    </option>
    <%
            cday++;
        }
    %>
    <option value="L">最后一日</option>
</select>
日&nbsp;&nbsp;
<select id="hourid">
    <%
        int chour = 0;
        while (chour <= 23) {
    %>
    <option value="<%=chour%>">
        <%=chour%>
    </option>
    <%
            chour++;
        }
    %>
    <option value="*">每</option>
</select>
时&nbsp;&nbsp;
<select id="minuteid">
    <%
        int cminute = 0;
        while (cminute <= 59) {
    %>
    <option value="<%=cminute%>">
        <%=cminute%>
    </option>
    <%
            cminute++;
        }
    %>
    <option value="*">每</option>
</select>
分&nbsp;&nbsp;
<select id="secondid">
    <%
        int csecond = 0;
        while (csecond <= 59) {
    %>
    <option value="<%=csecond%>">
        <%=csecond%>
    </option>
    <%
            csecond++;
        }
    %>
    <option value="*">每</option>
</select>
秒
